/**
 * Created by Administrator on 2017/6/26.
 */
var log4js = require('log4js');
var config = require('../../log4js.json');

log4js.configure(config);

exports.use = function (app) {
  var logger = log4js.getLogger('infoLog');
  // app.use(log4js.connectLogger(logger, {level: 'INFO', format: ':method :url'}));
}

exports.logger = function (name) {
  var logger = log4js.getLogger(name);
  return logger;
}